<script type="text/template" id="company-template">
    <div style="background-color: #F1F5F8;height: 100%;width: 100%;float:left;">
        <div class="company-body">
                <div class="settingBody">
                    <form id="myCompanyInfo" onsubmit="return false;">
                        <div class="setting-block">
                            <div class="setting-header">公司信息设置</div>
                            <div class="setting-content">
                                <div class="inputForm-row">
                                    <label for="COCHName">公司中文名称:</label>
                                    <input id="COCHName" style="min-width: 250px;" value="<@=Util.isEmpty(data)?'':data.nameZh@>" type="text">
                                    <span class="ex"></span>
                                </div>
                                <div class="inputForm-row">
                                    <label for="COENName">公司英文名称:</label>
                                    <input id="COENName" value="<@=Util.isEmpty(data)?'':data.nameEn@>" style="min-width: 250px;"  type="text">
                                </div>
                                <div class="inputForm-row">
                                    <label for="phone">公司电话:</label>
                                    <input id="phone"  value="<@=Util.isEmpty(data)?'':data.tel@>" type="text">
                                </div>
                                <div class="inputForm-row">
                                    <label for="fax">公司传真:</label>
                                    <input id="fax"  value="<@=Util.isEmpty(data)?'':data.fax@>" type="text">
                                </div>
                                <div class="inputForm-row">
                                    <label for="principal">公司负责人:</label>
                                    <input id="principal" value="<@=Util.isEmpty(data)?'':data.principal@>" type="text">
                                </div>
                                <div class="inputForm-row">
                                    <label>公司LOGO:</label>
                                    <button id="getLogo" class="btn btn-green" style="padding: 8px 30px;">选择图片</button>
                                    <input id="logoFile" type="file" style="display: none;" class="" name="logo" data-id="<@=Util.isEmpty(data)?'':data.logoId@>"/>
                                </div>
                                <div class="inputForm-row" style="position:relative;">
                                    <label>&nbsp;</label>
                                    <div class="showLogo"></div>
                                    <div style="display:inline-block;position: relative; left: 115px; color: #777;width: 100%;">图片格式必须为bmp,jpeg,jpg,gif,不可大于3M</div>
                                </div>
                            </div>
                        </div>
                        <div class="myLine"></div>
                        <div class="setting-block">
                            <div class="setting-header">首页图片设置</div>
                            <div class="setting-content">
                                <div class="co-imageBlock"><input name="homeImgs" type="file"/><div class="img-mask"><i class='fa fa-trash-o'></i></div></div>
                                <div class="co-imageBlock"><input name="homeImgs" type="file"/><div class="img-mask"><i class='fa fa-trash-o'></i></div></div>
                                <div class="co-imageBlock"><input name="homeImgs" type="file"/><div class="img-mask"><i class='fa fa-trash-o'></i></div></div>
                                <div class="co-imageBlock"><input name="homeImgs" type="file"/><div class="img-mask"><i class='fa fa-trash-o'></i></div></div>
                                <button  id="uploadImg" class="btn btn-green" style="margin-left: 15px; padding: 12px 40px;margin-right: 50%;">上传图片</button>
                            </div>
                        </div>
                    </form>
                </div>
            <div class="setting-foot">
                <@if(Util.isEmpty(data)){@>
                <button class="btn btn-blue settingBtn save">新建</button>
                <@}else{@>
                <button class="btn btn-blue settingBtn update">保存修改</button>
                <@}@>
            </div>
        </div>
    </div>
</script>